<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>Document</title>
</head>
<body>
    <script type="text/javascript">
        var str = "学并思教育地址:www.daniuit.com，vip地址：vip.daniuit.com,数据平台网址：data.daniuit..com";
        var a=0;
        function zhaozhi(){
            a = str.indexOf("daniuit");
            if(a != -1){
                document.write(a);
                document.write("<br/>");
                str = str.replace("daniuit","xxxxxxx") 
                zhaozhi();
            }
            return;
        }
        zhaozhi();
    </script>
</body>
</html>